#
# @author Wójcik Karol <wojcikk@student.agh.edu.pl>
# @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
#

class Major < ActiveRecord::Base
belongs_to      :study_type
belongs_to      :faculty

validates_presence_of :name, :message => "Pole 'Nazwa' jest puste"
validates_presence_of :study_type_id, :message => "Pole 'Typ studiow' jest puste"
validates_presence_of :faculty_id, :message => "Pole 'Wydzial' jest puste"

end
